package com.hhh.sun.vo.resp;

/**
 * @author by itheima
 * @Date 2021/12/21
 * @Description
 */
public enum ResponseCode{
    ERROR(0,"操作失败"),
    SUCCESS(1,"操作成功"),
    DATA_ERROR(0,"参数异常"),
    NO_RESPONSE_DATA(0,"无响应数据"),
    USERNAME_OR_PASSWORD_ERROR(0,"用户名或密码错误"),
    ACCOUNT_EXISTS_ERROR(0,"该账号已存在"),
    CHARGING_EXISTS_ERROR(0,"该充电站已经存在"),
    ACCOUNT_NOT_EXISTS(0,"该账号不存在"),
    USER_IS_BAN(0,"您当前处于黑名单中"),
    CHARGING_IS_DISABLED(0,"该充电站不可用"),
    TIME_OUT(0,"由于你未在半小时内进行充电，该订单已经取消，请重新预约");

    private int code;
    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}

